package e.odbo.data.sample.lock;

import e.odbo.data.bean.BaseBean;

import java.util.Date;

public class OdbOLock extends BaseBean<String> {

//private static final long serialVersionUID =850127378306900478L;

    public final static String ID="ID";
    public final static String LOCK_OWNER="LOCK_OWNER";
    public final static String LOCK_TIME="LOCK_TIME";

    protected  String id;
    protected  String lockOwner;
    protected  Date lockTime;

    public OdbOLock() {
        super();
    }

    public OdbOLock(String id) {
        this.id=id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLockOwner() {
        return lockOwner;
    }

    public void setLockOwner(String lockOwner) {
        this.lockOwner = lockOwner;
    }

    public Date getLockTime() {
        return lockTime;
    }

    public void setLockTime(Date lockTime) {
        this.lockTime = lockTime;
    }

    @Override
    public String getKey() {
        return id;
    }

    public void setKey(String id) {
        this.id = id;
    }

    public String toString() {
        return "id="+id
                +",lockOwner="+lockOwner
                +",lockTime="+lockTime;
    }
}